﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public interface IHoaDonRepository
    {
         HoaDon GetByMaHoaDon(string maHD);
         IQueryable<HoaDon> GetAll();
         void AddNew(HoaDon hoaDon);
         void Update(HoaDon hoaDon);
         bool Delete(HoaDon hoaDon);
         void Xoa(HoaDon a);
         bool ThemHoaDon(HoaDon hdt);
         IQueryable<HoaDon> GetByNgay(string ngay);
         IQueryable<HoaDon> GetByThang(string thang);
         IQueryable<HoaDon> GetbyQuy(string quy);
         IQueryable<HoaDon> getbyNam(string nam);
         IQueryable<HoaDon> TimHoaDonTheoBan(string ban);
         IQueryable<HoaDon> TimHoaDonTheoNguoiLap(string nguoilap);
         IQueryable<HoaDon> TimHoaDonTheoNam(string nam);
         IQueryable<HoaDon> TimHoaDonTheoLoai(bool  loai);
         IQueryable<HoaDon> TimHoaDonTheoTTTinhTien(bool tinhtien);
         IQueryable<HoaDon> TimHoaDonTheoThang(string thang);

    }
}
